<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<body>
		<p id="time"></p>
		<script type="text/javascript">
			
			function acfun(){
				var now=new Date();
				var hour=now.getHours();
				var minute=now.getMinutes();
				var second=now.getSeconds();
				var time=document.getElementById('time');
				if(second<10){
					second="0"+second;
				}
				time.innerHTML=hour+":"+minute+":"+second;
				
			}
			window.setInterval(acfun,1000);
			
		</script>
	</body>
</html>
0